var http = require('http');
var server = http.createServer();

server.listen(8000,function(){
    console.log('启动成功！');
});

server.on('request', function(req,res){
    res.setHeader('content-type', 'text/html;charset=utf-8');
    // res.write('<s>哈哈哈</s>');

    var fs = require('fs');
    fs.readFile('01_Nodejs/02_code/0.2.html','utf8',function(err,data){
        res.write(data);
        res.end();
    })
});
    